import request from '@/utils/request.js'

/**
 * 获取文章列表API
 * @param currentPage 当前页
 * @param pageSize 每页显示条数
 * @returns 返回的是个promise实例
 */
export const getArticlesAPI = function (currentPage, pageSize) {
    return request.get('/queryArticles', {
        params: {
            currentPage: currentPage,
            pageSize: pageSize
        }
    });
};